import QtQuick 2.0
import QtQuick.Controls 1.0
Rectangle {
    width: 100
    height: 62
    Button{
        anchors.centerIn: parent
        text: "&Quit"
        onClicked: { Qt.quit()}
        isDefault: true
        menu: Menu{
            MenuItem{
                text: "Open"
                onTriggered:openFile()
            }

            MenuItem{
                text: "Exit"
                onTriggered: Qt.quit()
            }
        }
    }

    function openFile(){
        console.log("Open file triggered")
    }
}

